<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-companyProcurement-edit" th:object="${companyProcurement}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">项目Id：</label>
                <div class="col-sm-8">
                    <input id="projectId" name="projectId" th:field="*{projectId}" class="form-control" type="text" readonly="readonly">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">公司名称：</label>
                <div class="col-sm-8">
                    <select id="company" name="company" class="form-control m-b" th:with="type=${@attendanceInfoServiceImpl.getCompanyList()}">
                        <option th:each="dict : ${type}" th:text="${dict}" th:value="${dict}" th:field="*{company}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">人员资质：</label>
                <div class="col-sm-8">
                    <input id="staffLevel" name="staffLevel" th:field="*{staffLevel}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">工作量：</label>
                <div class="col-sm-8">
                    <input id="workload" name="workload" th:field="*{workload}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">人数：</label>
                <div class="col-sm-8">
                    <input id="staffNu" name="staffNu" th:field="*{staffNu}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">已使用人月：</label>
                <div class="col-sm-8">
                    <input id="used" name="used" th:field="*{used}" class="form-control" type="text">
                </div>
            </div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/companyProcurement"
		$("#form-companyProcurement-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-companyProcurement-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
